import request from '@/utils/request'

// 查询花名册列表
export function listEmpl_register(query) {
  return request({
    url: '/ehr/empl_register/list',
    method: 'get',
    params: query
  })
}

// 查询花名册详细
export function getEmpl_register(partyId) {
  return request({
    url: '/ehr/empl_register/' + partyId,
    method: 'get'
  })
}

// 新增花名册
export function addEmpl_register(data) {
  return request({
    url: '/ehr/empl_register',
    method: 'post',
    data: data
  })
}

// 修改花名册
export function updateEmpl_register(data) {
  return request({
    url: '/ehr/empl_register',
    method: 'put',
    data: data
  })
}

// 删除花名册
export function delEmpl_register(partyId) {
  return request({
    url: '/ehr/empl_register/' + partyId,
    method: 'delete'
  })
}

